﻿package org.hsl.avm2.translation.mouse;
/**
 * The state of the modifier keys (the Control, Alt and Shift keys.)
 */
class ModifierKeysState {
	/**
	 * Indicates whether the alt key is down (true) or not (false);
	 */
	public var altKeyDown(default, null):Bool;
	/**
	 * Indicates whether the control key is down (true) or not (false);
	 */
	public var controlKeyDown(default, null):Bool;
	/**
	 * Indicates whether the shift key is down (true) or not (false);
	 */
	public var shiftKeyDown(default, null):Bool;
	/**
	 * Creates a new modifier keys state.
	 */
	public function new(altKeyDown:Bool, controlKeyDown:Bool, shiftKeyDown:Bool):Void {
		this.altKeyDown = altKeyDown;
		this.controlKeyDown = controlKeyDown;
		this.shiftKeyDown = shiftKeyDown;
	}
	private function toString():String {
		return "[ModifierKeysState altKeyDown=" + altKeyDown + " controlKeyDown=" + controlKeyDown + " shiftKeyDown=" + shiftKeyDown + "]";
	}
}